/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tp1;

import java.awt.Container;
import java.awt.Window;
import tp1.models.Cliente;
import java.sql.*;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
import sun.net.www.content.image.gif;
import tp1.dao.ChamadaDao;
import tp1.dao.ClienteDao;
import tp1.dao.LinhaDao;
import tp1.models.Chamada;
import tp1.models.Linha;
import tp1.views.Principal;

/**
 *
 * @author tulio
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        TesteReflection t = new TesteReflection();
        t.setTeste(3);
        t.teste();
//        java.awt.EventQueue.invokeLater(new Runnable() {
//            public void run() {
//                Principal.getInstance().setVisible(true);
//            }
//        });
    }

    public static Date formataData(String dataStr){
        Date d  = new Date();
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        try {
            d = df.parse(dataStr);
        } catch (ParseException ex) {
            ex.printStackTrace();
        }
        return d;
    }
}
